//
//  CustomProductTableViewCell.m
//  ChunLaiZhuangClient
//
//  Created by zouzhisheng on 16/3/13.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "CustomProductTableViewCell.h"

@implementation CustomProductTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *identifier = @"status";
    // 1.缓存中取
    CustomProductTableViewCell*cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    // 2.创建
    if (cell == nil) {
        cell = [[CustomProductTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    }
    return cell;
}
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor=[UIColor whiteColor];
        self.leftView=[[SingleProductView alloc] initWithFrame:CGRectMake(0, 0,SCREEN_WIDTH/2,240 )];
        self.rightView=[[SingleProductView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/2, 0,SCREEN_WIDTH/2,240 )];
        [self addSubview:self.leftView];
        [self addSubview:self.rightView];
    }
    return self;
}


@end
